//
//  LTOVEDynamicCreakButton.h
//  dsad
//
//  Created by LTOVE on 16/8/4.
//  Copyright © 2016年 LTOVE. All rights reserved.
//  动态创建button  可以创建一行 也可以创建多行  可以在 .m文件中修改边距

#import <UIKit/UIKit.h>

@protocol dynamicButtonDelegate <NSObject>



@required

- (void)dynamicButtonClick:(UIButton *)btn;


@end

@interface LTOVEDynamicCreakButton : UIView

@property (nonatomic,weak) id <dynamicButtonDelegate>delegate;


- (void)setTitle:(NSString *)title forState:(UIControlState)state index:(NSUInteger)index;
/**
 *  指定列   动态行 全部属性
 *
 *  @param frame      frame description
 *  @param titleArray titleArray description
 *  @param col        col description
 *
 *  @return return value description
 */
+ (LTOVEDynamicCreakButton *)buttonViewWithFrame:(CGRect)frame titleDataArray:(NSArray *)titleArray andCol:(int)col andEdgInset:(UIEdgeInsets)inset andMaginX:(CGFloat)maginX andMaginY:(CGFloat)maginY andBtnHeigh:(CGFloat)btnHeigh andBtnNorColor:(UIColor *)color andBtnHeighColor:(UIColor *)heighcolor andRadius:(CGFloat)radius andFont:(NSDictionary *)font;
/**
 *  动态创建一行
 *
 *  @param frame      frame description
 *  @param titleArray titleArray description
 *
 *  @return return value description
 */
+ (LTOVEDynamicCreakButton *)buttonViewWithFrame:(CGRect)frame titleDataArray:(NSArray *)titleArray andEdgInset:(UIEdgeInsets)inset andMaginX:(CGFloat)maginX andMaginY:(CGFloat)maginY andBtnHeigh:(CGFloat)btnHeigh andBtnNorColor:(UIColor *)color andBtnHeighColor:(UIColor *)heighcolor andRadius:(CGFloat)radius andFont:(NSDictionary *)font;
/**
 *  指定列 动态行 全部属性  图片背景
 *
 *  @param frame      Frame
 *  @param titleArray 按钮文字数组
 *  @param col        指定列
 *  @param inset      按钮内边距
 *  @param maginX     按钮内部横向边距
 *  @param maginY     按钮内部竖向间距
 *  @param btnHeigh   按钮的高度
 *  @param norImage   常态图片
 *  @param heighImage 高亮图片
 *  @param radius     圆角半径
 *  @param font       字体属性字典
 *
 *  @return 创建好的button视图
 */
+ (LTOVEDynamicCreakButton *)buttonViewWithFrame:(CGRect)frame titleDataArray:(NSArray *)titleArray andCol:(int)col andEdgInset:(UIEdgeInsets)inset andMaginX:(CGFloat)maginX andMaginY:(CGFloat)maginY andBtnHeigh:(CGFloat)btnHeigh andBtnNorImage:(UIImage *)norImage andHeighImage:(UIImage *)heighImage andRadius:(CGFloat)radius andFont:(NSDictionary *)font;
/**
 *  一行 全部属性  图片背景
 *
 *  @param frame      Frame
 *  @param titleArray 按钮文字数组
 *  @param inset      按钮内边距
 *  @param maginX     按钮内部横向边距
 *  @param maginY     按钮内部竖向间距
 *  @param btnHeigh   按钮的高度
 *  @param norImage   常态图片
 *  @param heighImage 高亮图片
 *  @param radius     圆角半径
 *  @param font       字体属性字典
 *
 *  @return 创建好的button视图
 */
+ (LTOVEDynamicCreakButton *)buttonViewWithFrame:(CGRect)frame titleDataArray:(NSArray *)titleArray andEdgInset:(UIEdgeInsets)inset andMaginX:(CGFloat)maginX andMaginY:(CGFloat)maginY andBtnHeigh:(CGFloat)btnHeigh andBtnNorImage:(UIImage *)norImage andHeighImage:(UIImage *)heighImage andRadius:(CGFloat)radius andFont:(NSDictionary *)font;
@end
